package com.stylefeng.guns.common.persistence.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng123
 * @since 2018-03-07
 */
@TableName("t_bill")
public class TBill extends Model<TBill> {

    private static final long serialVersionUID = 1L;

    /**
     * 账单
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("bill_num")
    private String billNum;
    /**
     * 现金
     */
    private Float cash;
    /**
     * 支付宝
     */
    private Float alipay;
    private Float bank;
    /**
     * 微信
     */
    private Float weixin;
    private Date createTime;
    /**
     * 操作人
     */
    private Integer editUser;
    @TableField("dot_id")
    private Integer dotId;

    private Integer billCheckId;

    public Integer getBillCheckId() {
        return billCheckId;
    }

    public void setBillCheckId(Integer billCheckId) {
        this.billCheckId = billCheckId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBillNum() {
        return billNum;
    }

    public void setBillNum(String billNum) {
        this.billNum = billNum;
    }

    public Float getCash() {
        return cash;
    }

    public void setCash(Float cash) {
        this.cash = cash;
    }

    public Float getAlipay() {
        return alipay;
    }

    public void setAlipay(Float alipay) {
        this.alipay = alipay;
    }

    public Float getBank() {
        return bank;
    }

    public void setBank(Float bank) {
        this.bank = bank;
    }

    public Float getWeixin() {
        return weixin;
    }

    public void setWeixin(Float weixin) {
        this.weixin = weixin;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getEditUser() {
        return editUser;
    }

    public void setEditUser(Integer editUser) {
        this.editUser = editUser;
    }

    public Integer getDotId() {
        return dotId;
    }

    public void setDotId(Integer dotId) {
        this.dotId = dotId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "TBill{" +
        "id=" + id +
        ", billNum=" + billNum +
        ", cash=" + cash +
        ", alipay=" + alipay +
        ", bank=" + bank +
        ", weixin=" + weixin +
        ", createTime=" + createTime +
        ", editUser=" + editUser +
        ", dotId=" + dotId +
        "}";
    }
}
